package tenant

import "time"

type TenantsInstance struct {
	Id             int32     `json:"id"`
	Host           string    `json:"host"`
	Port           int32     `json:"port"`
	DbName         string    `json:"db_name"`
	Username       string    `json:"username"`
	Password       string    `json:"password"`
	ReaderUsername string    `json:"reader_username"`
	ReaderPassword string    `json:"reader_password"`
	TenantCode     string    `json:"tenant_code"`
	DbExtras       string    `json:"db_extras"`
	CreatedBy      string    `json:"created_by"`
	CreatedOn      time.Time `json:"created_on"`
	ModifiedBy     string    `json:"modified_by"`
	ModifiedOn     time.Time `json:"modified_on"`
	IsDeleted      int32     `json:"is_deleted"`
}

// TableName sets the table name for the Tenant model.
func (t TenantsInstance) TableName() string {
	return "tenants_instance"
}
